
const init = {
  userInfo: {},
}
export default function user(state = init, action) {
  let newState = {...state}
  const {type,payload} = action
  switch (type) {
    case "addUser":
      newState.userInfo = payload
      return newState
    default:
      return newState;
  }
}
